package com.zjcode.cdcer.service;

import com.chinatechstar.component.commons.result.ListResult;
import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.basic.JsonObj;
import com.zjcode.cdcer.service.fallback.SystemInitServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName:SystemInitService
 * @功能：
 * @author：wlei
 * @日期：2022/7/9-22:29
 **/
@FeignClient(value = "zjcode-chronic-disease-cancer-server", fallback = SystemInitServiceFallBack.class)
public interface SystemInitService {

    @GetMapping("/cdcerserver/v1/systeminit/sayHi")
    JsonObj sayHi(@RequestParam("message") String message);

    @PostMapping("/cdcerserver/v1/systeminit/listByPage")
    ListResult<Object> listByPage(@RequestBody PageData pageData);


    @PostMapping("/cdcerserver/v1/systeminit/execInsert")
    JsonObj execInsert(@RequestBody PageData pageData);


    @PostMapping("/cdcerserver/v1/systeminit/execSelect")
    JsonObj execSelect(@RequestBody PageData pageData);

    @PostMapping("/cdcerserver/v1/systeminit/testData")
    ListResult<Object> testData(@RequestBody PageData pageData);
}
